Skip to content

bpo-37231: remove _PyObject_FastCall_Prepend which is no longer used#14153

Merged
methane merged 1 commit into
python:masterfrom
jdemeyer:bpo37231
Jun 17, 2019
Merged

bpo-37231: remove _PyObject_FastCall_Prepend which is no longer used#14153
methane merged 1 commit into
python:masterfrom
jdemeyer:bpo37231

Conversation

@jdemeyer

@jdemeyer jdemeyer commented Jun 17, 2019

Copy link
Copy Markdown
Contributor

Thanks to #13973, the private function _PyObject_FastCall_Prepend is no longer used, so we can remove it.

Note that the implementation is actually buggy: it contains an off-by-1 error in the condition nargs <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack) (forgetting to reserve space for the prepended argument). Since nargs was always at most 2 in all calls of this function, this bug was never noticed.

CC @methane

https://bugs.python.org/issue37231

@methane
methane merged commit 0456df4 into python:master Jun 17, 2019
@jdemeyer
jdemeyer deleted the bpo37231 branch June 17, 2019 12:16
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants